package com.qingxin.park.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * Company entity. 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "company")
public class Company extends com.qingxin.sys.entity.BaseEntity implements
		java.io.Serializable {
	private static final long serialVersionUID = -3184600391338549410L;
	private String companyid;
	private String companyNo;
	private String companyType;
	private String groupid;
	private String businessNo;
	private String companyName;
	private String corporatePerson;
	private String contactPerson;
	private String phone;
	private String address;
	private String companyLevel;
	private BigDecimal lat;
	private BigDecimal lng;
	private String postcodes;
	private String productDesc;
	private String productivity;
	private String mainbody;
	private String farmLevel;
	private String ccc;
	private String nameplate;
	private String isBuild;
	private String qrcode;
	private String imgurl;
	private String remark;
	private String createBy;
	private Date createTime;
	private String updateBy;
	private Date updateTime;

	// Constructors
	/** default constructor */
	public Company() {
	}

	public Company(String companyid) {
		this.companyid = companyid;
	}
	
	

	public Company(String companyid, String companyNo, String companyName,
			String imgurl, String remark) {
		this.companyid = companyid;
		this.companyNo = companyNo;
		this.companyName = companyName;
		this.imgurl = imgurl;
		this.remark = remark;
	}

	/** full constructor */
	public Company(String companyNo, String companyType, String groupid,
			String businessNo, String companyName, String corporatePerson,
			String contactPerson, String phone, String address,
			String companyLevel, BigDecimal lat, BigDecimal lng, String postcodes,
			String productDesc, String productivity, String mainbody,
			String farmLevel, String ccc, String nameplate, String isBuild) {
		this.companyNo = companyNo;
		this.companyType = companyType;
		this.groupid = groupid;
		this.businessNo = businessNo;
		this.companyName = companyName;
		this.corporatePerson = corporatePerson;
		this.contactPerson = contactPerson;
		this.phone = phone;
		this.address = address;
		this.companyLevel = companyLevel;
		this.lat = lat;
		this.lng = lng;
		this.postcodes = postcodes;
		this.productDesc = productDesc;
		this.productivity = productivity;
		this.mainbody = mainbody;
		this.farmLevel = farmLevel;
		this.ccc = ccc;
		this.nameplate = nameplate;
		this.isBuild = isBuild;
	}
	
	public Company(String companyid, String companyNo, String companyType,
			String groupid, String businessNo, String companyName,
			String corporatePerson, String contactPerson, String phone,
			String address, String companyLevel, BigDecimal lat, BigDecimal lng,
			String postcodes, String productDesc, String productivity,
			String mainbody, String farmLevel, String ccc, String nameplate,
			String isBuild, String qrcode) {
		this.companyid = companyid;
		this.companyNo = companyNo;
		this.companyType = companyType;
		this.groupid = groupid;
		this.businessNo = businessNo;
		this.companyName = companyName;
		this.corporatePerson = corporatePerson;
		this.contactPerson = contactPerson;
		this.phone = phone;
		this.address = address;
		this.companyLevel = companyLevel;
		this.lat = lat;
		this.lng = lng;
		this.postcodes = postcodes;
		this.productDesc = productDesc;
		this.productivity = productivity;
		this.mainbody = mainbody;
		this.farmLevel = farmLevel;
		this.ccc = ccc;
		this.nameplate = nameplate;
		this.isBuild = isBuild;
		this.qrcode = qrcode;
	}

	//"c.companyid, c.companyType, c.companyName, c.companyNo, c.businessNo, c.corporatePerson, c.contactPerson, c.phone, c.address, c.companyLevel, c.postcodes, c.productDesc, c.productivity, c.mainbody, c.farmLevel, c.ccc, c.nameplate, c.isBuild, p.parkName)"
	public Company(String companyid, String companyType, String companyName,
			String companyNo, String businessNo, String corporatePerson,
			String contactPerson, String phone, String address,
			String companyLevel, String postcodes,
			String productDesc, String productivity, String mainbody,
			String farmLevel, String ccc, String nameplate, String isBuild, String qrcode) {
		this.companyid=companyid;
		this.companyType=companyType;
		this.companyNo = companyNo;
		this.companyType = companyType;
		this.businessNo = businessNo;
		this.companyName = companyName;
		this.corporatePerson = corporatePerson;
		this.contactPerson = contactPerson;
		this.phone = phone;
		this.address = address;
		this.companyLevel = companyLevel;
		this.postcodes = postcodes;
		this.productDesc = productDesc;
		this.productivity = productivity;
		this.mainbody = mainbody;
		this.farmLevel = farmLevel;
		this.ccc = ccc;
		this.nameplate = nameplate;
		this.isBuild = isBuild;
		this.qrcode = qrcode;
		
	}
	

	public Company(String companyid, String companyName) {
		super();
		this.companyid = companyid;
		this.companyName = companyName;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "companyid", unique = true, nullable = false, length = 32)
	public String getCompanyid() {
		return this.companyid;
	}

	public void setCompanyid(String companyid) {
		this.companyid = companyid;
	}

	@Column(name = "company_no", length = 20)
	public String getCompanyNo() {
		return this.companyNo;
	}

	public void setCompanyNo(String companyNo) {
		this.companyNo = companyNo;
	}

	@Column(name = "company_type", length = 1)
	public String getCompanyType() {
		return this.companyType;
	}

	public void setCompanyType(String companyType) {
		this.companyType = companyType;
	}

	
	@Column(name = "groupid", length = 50)
	public String getGroupid() {
		return groupid;
	}

	public void setGroupid(String groupid) {
		this.groupid = groupid;
	}

	
	@Column(name = "business_no", length = 30)
	public String getBusinessNo() {
		return this.businessNo;
	}

	public void setBusinessNo(String businessNo) {
		this.businessNo = businessNo;
	}

	@Column(name = "company_name", length = 100)
	public String getCompanyName() {
		return this.companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	@Column(name = "corporate_person", length = 20)
	public String getCorporatePerson() {
		return this.corporatePerson;
	}

	public void setCorporatePerson(String corporatePerson) {
		this.corporatePerson = corporatePerson;
	}

	@Column(name = "contact_person", length = 20)
	public String getContactPerson() {
		return this.contactPerson;
	}

	public void setContactPerson(String contactPerson) {
		this.contactPerson = contactPerson;
	}

	@Column(name = "phone", length = 20)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "address", length = 200)
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "company_level", length = 1)
	public String getCompanyLevel() {
		return this.companyLevel;
	}

	public void setCompanyLevel(String companyLevel) {
		this.companyLevel = companyLevel;
	}

	@Column(name = "lat", precision = 15, scale = 10)
	public BigDecimal getLat() {
		return this.lat;
	}

	public void setLat(BigDecimal lat) {
		this.lat = lat;
	}

	@Column(name = "lng", precision = 15, scale = 10)
	public BigDecimal getLng() {
		return this.lng;
	}

	public void setLng(BigDecimal lng) {
		this.lng = lng;
	}

	@Column(name = "postcodes", length = 20)
	public String getPostcodes() {
		return this.postcodes;
	}

	public void setPostcodes(String postcodes) {
		this.postcodes = postcodes;
	}

	@Column(name = "product_desc", length = 200)
	public String getProductDesc() {
		return this.productDesc;
	}

	public void setProductDesc(String productDesc) {
		this.productDesc = productDesc;
	}

	@Column(name = "productivity", length = 1)
	public String getProductivity() {
		return this.productivity;
	}

	public void setProductivity(String productivity) {
		this.productivity = productivity;
	}

	@Column(name = "mainbody", length = 200)
	public String getMainbody() {
		return this.mainbody;
	}

	public void setMainbody(String mainbody) {
		this.mainbody = mainbody;
	}

	@Column(name = "farm_level", length = 1)
	public String getFarmLevel() {
		return this.farmLevel;
	}

	public void setFarmLevel(String farmLevel) {
		this.farmLevel = farmLevel;
	}

	@Column(name = "ccc", length = 1)
	public String getCcc() {
		return this.ccc;
	}

	public void setCcc(String ccc) {
		this.ccc = ccc;
	}

	@Column(name = "nameplate", length = 200)
	public String getNameplate() {
		return this.nameplate;
	}

	public void setNameplate(String nameplate) {
		this.nameplate = nameplate;
	}

	@Column(name = "isBuild", length = 1)
	public String getIsBuild() {
		return this.isBuild;
	}

	public void setIsBuild(String isBuild) {
		this.isBuild = isBuild;
	}
	
	@Column(name = "qrcode", length = 50)
	public String getQrcode() {
		return qrcode;
	}

	public void setQrcode(String qrcode) {
		this.qrcode = qrcode;
	}

	@Column(name = "imgurl", length = 100)
	public String getImgurl() {
		return imgurl;
	}

	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}

	@Column(name = "remark", length = 1000)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Column(name = "create_by", length = 32)
	public String getCreateBy() {
		return this.createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	@Column(name = "create_time", length = 23)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "update_by", length = 32)
	public String getUpdateBy() {
		return this.updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	@Column(name = "update_time", length = 23)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	

}